package com.macro.mall.product.constant;

/**
 * 常量信息
 *
 * @author dener
 */
public class Constants
{
    /**
     * 状态   0：有效   1：无效
     */
    public static final int STATUS_VALID = 0;
    public static final int STATUS_INVALID = 1;

    /**
     * 服务规格图片类型   1：分类图片   2：列表页图片
     */
    public static final String SERVER_SPEC_PIC_TYPE_MAIN = "1";
    public static final String SERVER_SPEC_PIC_TYPE_LIST = "2";

    /**
     * 服务规格图片类型   11：服务封面
     */
    public static final String PROD_SPEC_PIC_TYPE_MAIN = "11";

    /**
     * 产品规格测试模板
     */
    public static final String  PROD_SPEC_TEST_STOCK_TEMP_TYPE= "PM_PROD_SPEC_STOCK_TEMP_TEST";

    /**
     * 商品状态  0：已上架，1：已下架 2：草稿，3：配置完成，4：上架待审批，5：打回修改，6：拒绝上架，
     */
    public static final int PROD_STATUS_CONFIG_VALID = 0;
    public static final int PROD_STATUS_CONFIG_INVALID  = 1;
    public static final int PROD_STATUS_DRAFT = 2;
    public static final int PROD_STATUS_CONFIG_COMPLETE = 3;
    public static final int PROD_STATUS_APPROVALING = 4;
    public static final int PROD_STATUS_APPROVAL_MOD= 5;
    public static final int PROD_STATUS_APPROVAL_FAIL = 6;

    /**
     *  属性类型
     */
    public static final String PRPTY_TYPE_SALE = "1";
    public static final String PRPTY_TYPE_NATURE = "2";

    public static final String PRPTY_TYPE_SALE_NAME = "销售属性";
    public static final String PRPTY_TYPE_NATURE_NAME = "自然属性";

    /**
     *  库存任务状态  0.待处理  1.已处理  2.处理出错 9.处理中
     */
    public static final int STOCK_TASK_STATUS_WAITING = 0;
    public static final int STOCK_TASK_STATUS_SUCCESS = 1;
    public static final int STOCK_TASK_STATUS_FAILURE = 2;
    public static final int STOCK_TASK_STATUS_PROCESSING = 9;

    /**
     *  库存任务类型  11.每日到店  12 每日上门
     */
    public static final int STOCK_TASK_TYPE_DAILY = 11;
    public static final int STOCK_TASK_TYPE_DAILY_DOOR = 12;

    /**
     *  商品服务方式  1、到店 2 上门
     */
    public static final int PROD_SERVER_TYPE_STORE= 1;
    public static final int PROD_SERVER_TYPE_DOOR = 2;
    /**
     *  库存任务类型  生成未来N天子任务
     */
    public static final int GENERATE_STOCK_TASK_DAY= 15;
    /**
     *  每次处理周期库存子任务数量
     */
    public static final int HANDLE_MAX_STOCK_TASK_NUM= 100;
    /**
     *  展示最近7天库存
     */
    public static final int SHOW_STOCK_DAYS= 7;

    /**
     *  出入库类型  0 入库  1 出库  2 增加库存   11.销售扣减 12 销售回退
     */
    public static final int STOCK_IO_TYPE_IN= 0;
    public static final int STOCK_IO_TYPE_OUT= 1;
    public static final int STOCK_IO_TYPE_ADD= 2;
    public static final int STOCK_IO_TYPE_DEDUCT=11;
    public static final int STOCK_IO_TYPE_ROLLBACK=12;
}
